package core

import (
	_ "gitee.com/gcom/stockdock/core/api"
	"gitee.com/gcom/stockdock/core/router"
	"net/http"
	"strconv"
)

func StartServer(port int) error {
	return http.ListenAndServe(":"+strconv.Itoa(port), router.Router)
}
